package com.book.service.impl;

import com.book.pojo.Reward;
import com.book.mapper.RewardDao;
import com.book.service.RewardService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fk
 * @since 2023-10-16 08:24:19
 */
@Service
public class RewardServiceImpl extends ServiceImpl<RewardDao, Reward> implements RewardService {

    @Autowired
    private RewardDao rewardDao;

    @Override
    public int addReward(Reward reward1) {
        return rewardDao.insert(reward1);
    }
}
